package com.tiny.gui.utils;

import java.awt.Graphics2D;

/**
 * Classe abstrata que representa algum object para ser desenhado centralizado em algum plano
 * 
 * @author Erick Zanardo
 *
 */
public abstract class CenteredObject {
    protected int width;
    protected int height;

    protected int startX;
    protected int startY;

    public CenteredObject(int width, int height, int startX, int startY) {
        super();
        this.width = width;
        this.height = height;
        this.startX = startX;
        this.startY = startY;
    }

    public abstract int getX();
    public abstract int getY();

    public abstract void prepare();
    public abstract void render(Graphics2D g);
}
